I put forward the generic principles of programming cross - platform code , use conditional compilation order to assert cross - platform application , deal with the difference between windows and linux in program source code , complete cross - platform source code , compile source code using delphi7 , then the compiled application runs on windows . compile source code using kylix3 , then the compiled application runs on linux 提出了編寫跨平臺代碼的一般原則,使用條件編譯指令維護(hù)跨平臺應(yīng)用程序,在程序的源代碼中針對windows和linux操作系統(tǒng)之間的差異進(jìn)行了相應(yīng)的處理,使得在源代碼級完成了跨平臺,然后只需要針對不同的操作系統(tǒng)分別編譯就可以在相應(yīng)的操作系統(tǒng)上運(yùn)行。